/*******************************************************************************
 * Copyright (c) 2016 Kiel University and others.
 * 
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0.
 *
 * SPDX-License-Identifier: EPL-2.0
 *******************************************************************************/
package org.eclipse.elk.alg.layered.graph;

import org.eclipse.elk.core.math.ElkPadding;

/**
 * A mere copycat of {@link ElkPadding}. We use it for a single reason: to make a clear distinction between ELK's
 * padding and the (intermediate) padding used during the execution of ELK Layered.
 *
 * @see LMargin
 */
public class LPadding extends ElkPadding {
    
    /** The serial version UID. */
    private static final long serialVersionUID = -73916295796649526L;

    /**
     * Creates a new instance with all fields set to {@code 0.0}.
     */
    public LPadding() {
        super();
    }

    /**
     * Returns an exact copy of this padding.
     *
     * @return identical padding
     */
    // elkjs-exclude-start
    @Override
    // elkjs-exclude-end
    public LPadding clone() {
        LPadding clone = new LPadding();
        clone.setLeft(getLeft());
        clone.setRight(getRight());
        clone.setTop(getTop());
        clone.setBottom(getBottom());
        return clone;
    }

}
